package com.twohand.admin.Entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@ApiModel("项目表")
@TableName(value = "resume_info",autoResultMap = true)
@Data
public class ResumeInfo extends BaseEntity{
    @ApiModelProperty(name = "姓名")
    String name;
    @ApiModelProperty(name = "出生日期")
    String birthday;
    @ApiModelProperty(name = "住址")
    String address;
    @ApiModelProperty(name = "手机号码")
    String phone;
    @ApiModelProperty(name = "邮箱")
    String email;
    @ApiModelProperty(name = "工作状态，0在职，1待业")
    Integer status;
    @ApiModelProperty(name = "意向岗位")
    String job;

    @ApiModelProperty(name = "技能列表")
    @TableField(typeHandler = JacksonTypeHandler.class)
    List<Integer> skills = new ArrayList<>();

    @ApiModelProperty(name = "公司经历")
    @TableField(typeHandler = JacksonTypeHandler.class)
    List<Integer> companys = new ArrayList<>();
    @ApiModelProperty(name = "项目列表")
    @TableField(typeHandler = JacksonTypeHandler.class)
    List<Integer> projects = new ArrayList<>();
    @TableField(typeHandler = JacksonTypeHandler.class)
    List<Integer> evaluates = new ArrayList<>();
    @ApiModelProperty(name = "性别，0女，1男")
    Integer sex;
    @ApiModelProperty(name = "工作时长")
    String jobTime;
    @ApiModelProperty(name = "毕业学校")
    String school;
    @ApiModelProperty(name = "专业")
    String major;
    @ApiModelProperty(name = "就读时间")
    String schoolStartTime;
    @ApiModelProperty(name = "毕业时间")
    String schoolEndTime;
    @ApiModelProperty(name = "选中当前的为展示的用户/简历")
    Integer isChecked;
    @ApiModelProperty(name = "当前生成的链接")
    String resumeGenUrl;
    @TableField(exist = false)
    List<String> skillList = new ArrayList<>();
    @TableField(exist = false)
    List<ResumeCompany> companyList = new ArrayList<>();
    @TableField(exist = false)
    List<Project> projectList = new ArrayList<>();
    @TableField(exist = false)
    List<String> evaluateList = new ArrayList<>();
    @ApiModelProperty(name = "头像")
    String avatar = "https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132";

}
